package com.cpecc.model.system;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "sys_Sign")
public class Sign implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 5657456110213802422L;

	@Id 
	@GeneratedValue(generator = "persistenceGenerator")
	@GenericGenerator(name = "persistenceGenerator", strategy = "increment") 
	private int id;
	
	@ManyToOne
	@JoinColumn(name="USER_ID")
	private User user;
	
	@Column(length=64)
	private String fileName;
	
	@Column(length=16)
	private String xiangDuiLJ;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getXiangDuiLJ() {
		return xiangDuiLJ;
	}

	public void setXiangDuiLJ(String xiangDuiLJ) {
		this.xiangDuiLJ = xiangDuiLJ;
	}

	public Sign(int id, User user, String fileName, String xiangDuiLJ) {
		super();
		this.id = id;
		this.user = user;
		this.fileName = fileName;
		this.xiangDuiLJ = xiangDuiLJ;
	}

	public Sign() {
		super();
	}
}
